package com.api.user.model;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.*;

@Table(name = "companion_review")
public class CompanionReview implements Serializable {
    @Id
    @Column(name = "review_id")
    private Long reviewId;

    @Column(name = "companion_order_id")
    private Long companionOrderId;

    /**
     * 得分
     */
    private BigDecimal score;

    /**
     * 评价
     */
    private String evaluate;

    /**
     * 评价时间
     */
    @Column(name = "create_time")
    private Long createTime;

    /**
     * 评价人id
     */
    @Column(name = "user_id")
    private Long userId;

    private static final long serialVersionUID = 1L;

    /**
     * @return review_id
     */
    public Long getReviewId() {
        return reviewId;
    }

    /**
     * @param reviewId
     */
    public void setReviewId(Long reviewId) {
        this.reviewId = reviewId;
    }

    /**
     * @return companion_order_id
     */
    public Long getCompanionOrderId() {
        return companionOrderId;
    }

    /**
     * @param companionOrderId
     */
    public void setCompanionOrderId(Long companionOrderId) {
        this.companionOrderId = companionOrderId;
    }

    /**
     * 获取得分
     *
     * @return score - 得分
     */
    public BigDecimal getScore() {
        return score;
    }

    /**
     * 设置得分
     *
     * @param score 得分
     */
    public void setScore(BigDecimal score) {
        this.score = score;
    }

    /**
     * 获取评价
     *
     * @return evaluate - 评价
     */
    public String getEvaluate() {
        return evaluate;
    }

    /**
     * 设置评价
     *
     * @param evaluate 评价
     */
    public void setEvaluate(String evaluate) {
        this.evaluate = evaluate;
    }

    /**
     * 获取评价时间
     *
     * @return create_time - 评价时间
     */
    public Long getCreateTime() {
        return createTime;
    }

    /**
     * 设置评价时间
     *
     * @param createTime 评价时间
     */
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取评价人id
     *
     * @return user_id - 评价人id
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 设置评价人id
     *
     * @param userId 评价人id
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }
}